<?php
namespace M\Model;
use Think\Model;
class UserModel extends Model{
    protected $_validate=array(
        array('password','require','密码必须！'),
        array('phonenumber','','手机号码已经存在！',0,'unique',1),
    );
}